import React from 'react'
import MessageSurvey from "../List/MessageSurvey"
import MessageList from "../List/MessageList"
import SchoolMessage from "../List/SchoolMessage"
import TeacherMessage from "../List/TeacherMessage"

import { useRoutes, Navigate } from 'react-router-dom'

let routes = [
    {
        path: '/', element: <MessageSurvey />
    },
    {
        path: '/MessageSurvey', element: <MessageSurvey />
    },
    {
        path: '/MessageList', element: <MessageList />
    },
    {
        path: '/SchoolMessage', element: <SchoolMessage />
    },
    {
        path: '/TeacherMessage', element: <TeacherMessage />
    },
]

const route = () => {
    return useRoutes(routes)
}

export default route
